<?php

require_once 'Zend/Controller/Front.php';

//Initialize Configuration

//Create db object

//Create auth object
require_once 'Zend/Auth.php';
$auth = Zend_Auth::getInstance();

//Instanciate my own renderer which extends the basic one
require_once 'Etian/Controllers/Helpers/ViewRenderer.php';
$viewRenderer = new Etian_Controllers_Helpers_ViewRenderer();
require_once 'Zend/Controller/Action/HelperBroker.php';
Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);

/* Run the application */
require_once 'Etian/Controllers/Plugins/AclAndAuth.php';
$front = Zend_Controller_Front::getInstance();
$front//->throwExceptions(true)
	  ->registerPlugin(new Etian_Controllers_Plugins_AclAndAuth($auth))
	  ->setControllerDirectory('C:\Program Files\Apache Software Foundation\Apache2.2\apps\etian\controllers')
	  ->dispatch();
	  
	  
//Zend_Controller_Front::run('C:\Program Files\Apache Software Foundation\Apache2.2\apps\etian\controllers');

/*
 * In case I ever need to know how to disable the renderer %/
 */
//Zend_Controller_Front::getInstance()->setParam('noViewRenderer', true);

?> 